﻿using FluentNHibernate.Mapping;

namespace Application_Core.Arbeitsplan_Component.Data_Access_Layer
{
    public class ArbeitsplanMap : ClassMap<Arbeitsplan>
    {
        public ArbeitsplanMap()
        {
            Id(x => x.Id)
                .GeneratedBy.Identity()
                .Length(11);
            Map(x => x.Nummer)
                .Not.Nullable()
                .Length(11);
            Map(x => x.BauteilId)
                .Not.Nullable();
        }
    }
}
